package com.group9.handinhand.dao.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.group9.handinhand.service.so.SkillSO;

@Entity
@Table(name = "SKILL")
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
public class Skill extends AbstractBaseModel {
	
	private static final long serialVersionUID = 1L;
	
	@Column(name = "NAME", nullable = false)
	private String name;

	public SkillSO convertToServiceObject(String... ignoreProperties) {
		SkillSO so = (SkillSO) convert(new SkillSO(), ignoreProperties);
		return so;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String toString() {
		return "Skill [name=" + name + "]";
	}
	
	

}
